POV-Ray : Newsgroups : povray.general : POV ignoring my code! : POV ignoring my code! Server Time
5 Aug 2024 10:19:55 EDT (-0400)
  POV ignoring my code!  
From: Timothy Groves
Date: 30 Sep 2002 13:24:56
Message: <3D988735.6933BF73@yahoo.co.uk>
Hi!  For an animation I've been working on, I've got this snippet of
code.  It's meant to act as an engine exhaust glow.  However, POV has
been ignoring my RGB settings, and has always had the light at maximum
intensity during clock cycle 0.1 to 0.2.  What am I doing wrong?


#switch (clock)
	#range (0.1, 0.2)
		light_source { 
			<0, 0, zloc-6.5>,
			color rgb <(clock - 0.1)*10, (clock - 0.1)*5, 0>
		}
	#range (0.2, 0.4)
		light_source { 
			<0, 0, zloc-6.5>, 
			color rgb <1, 0.5, 0> 
		}
	#break
#end
                      

-- 
ICQ#66022322

  "It's a terrifying thing, isn't it?  To live in fear.  
	 That's what it's like to be a slave."
	--Rutger Hauer, Bladerunner


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.